<% if cart.line_items.size >0%>
<div class="cart_title">
    Your Cart
</div>
<table>
   
 <%= render cart.line_items %>
    <tr class="total_line">
        <td colspan="2">Total</td>
        <td class="total_cell"><%= number_to_currency cart.total_price%></td>
    </tr>
</table>
 
<%= link_to 'Edit', edit_cart_path(cart) %> |
<%= link_to 'Back', carts_path %>
<%= button_to 'Check out', new_order_path,:method =>:get%>
<%= button_to 'Empty Cart',cart,:method =>:delete, :confirm => 'are you sure ?'%> 
<%end%>
